module.exports = (generator, { selectStore }) => {
  if (selectStore === "pinia") {
    generator.extendPackage({
      dependencies: {
        pinia: "^2.0.22",
      },
    });
    generator.render("./piniaTemplate");
  } else if (selectStore === "vuex") {
    generator.extendPackage({
      dependencies: {
        vuex: "^4.1.0",
      },
    });
    generator.render("./vuexTemplate");
  }
};
